import { defineStore } from 'pinia';

const usePublicConfigStore = defineStore('publicConfig', {
    state: () => ({
        theme: "#2563eb",
        algorithm: false ,// 默认白色 dark 黑暗色 | light 亮色
        dictionary:null
    }),
    persist: {
        enabled: true,
        strategies: [
            { key: 'publicConfig', storage: localStorage },
        ],
    },
});

export default usePublicConfigStore;